import request from '@/utils/request'

// 查询品种管理列表
export function listBreedmanagement(query) {
    return request({
        url: '/breedmanagement/breedmanagement/list',
        method: 'get',
        params: query
    })
}

// 查询品种管理详细
export function getBreedmanagement(id) {
    return request({
        url: '/breedmanagement/breedmanagement/' + id,
        method: 'get'
    })
}

// 新增品种管理
export function addBreedmanagement(data) {
    return request({
        url: '/breedmanagement/breedmanagement',
        method: 'post',
        data: data
    })
}

// 修改品种管理
export function updateBreedmanagement(data) {
    return request({
        url: '/breedmanagement/breedmanagement',
        method: 'put',
        data: data
    })
}

// 删除品种管理
export function delBreedmanagement(id) {
    return request({
        url: '/breedmanagement/breedmanagement/' + id,
        method: 'delete'
    })
}
